<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<title><tpl> $langCShopNCSystem </tpl></title>
<tpl>include file ='sys_head_config.html'</tpl>
</head>
<body>
<div class="tabbar">
  <ul class="tab_btns" id="COPYYH2">
    <li class="current"><a href="integration.manage.php?action=manage"><span><tpl> $langInteLaissezPasserSet </tpl></span></a></li>
  </ul>
	<div class="tab_notes" id="copyyh0">
		<ul class="notesbg block"><span><h4><tpl> $langInteLaissezPasserSetOtherSystemDir </tpl></h4></span></ul>
	</div>
	<!-- 显示提示信息 -->
	<div id="message"></div>
	<!-- 显示提示信息end -->
</div>

<div id="product-help" class="admincp_form" style="top:88px;">
<div id="result_content">
	<form  action="integration.manage.php?action=save" method="post" id="form1" name="form1"  style=" line-height:25px; padding:20px;">
<strong style="color:#007DC6"><tpl> $langPassportIfOpen </tpl>:</strong>
<label for="open_passport_1"><input name="open_passport" type="radio" id="open_passport_1" value="1" onclick="$('#div_open_passport').show();"<tpl>if $config_array.open_passport eq '1' </tpl> checked<tpl> /if </tpl> /><tpl> $langPassportIfOpenYes </tpl></label> <label for="open_passport_0"><input name="open_passport" type="radio" id="open_passport_0" value="0"<tpl>if $config_array.open_passport eq '0' </tpl> checked<tpl> /if </tpl> onclick="$('#div_open_passport').hide();"/><tpl> $langPassportIfOpenNo </tpl></label>
<br />
<div id="div_open_passport" style="<tpl>if $config_array.open_passport eq '0' </tpl>display:none;<tpl> /if </tpl>">
<strong style="color:#007DC6"><tpl> $langInteLaissezPasserKEY </tpl>:</strong>
<input name="passport_key" style="border:1px solid #ccc"  type="text" id="passport_key" value="<tpl> $config_array.passport_key </tpl>"/>
<br />
<strong style="color:#007DC6"><tpl> $langPassportAs </tpl>:</strong>
<label for="passport_type_0"><input name="passport_type" type="radio" id="passport_type_0" value="0"<tpl>if $config_array.passport_type eq '0' </tpl> checked<tpl> /if </tpl> onclick="javascript:$('#div_passport_client').hide();$('#div_client_detail').hide();$('#div_passport_server').show();$('#div_server_detail').show();$('#div_passport_uc').hide();$('#div_uc_detail').hide();"/><tpl> $langPassportAsServer </tpl></label>
 <label for="passport_type_1"><input name="passport_type" type="radio" id="passport_type_1" value="1" onclick="javascript:$('#div_passport_server').hide();$('#div_passport_client').show();$('#div_server_detail').hide();$('#div_client_detail').show();$('#div_passport_uc').hide();$('#div_uc_detail').hide();"<tpl>if $config_array.passport_type eq '1' </tpl> checked<tpl> /if </tpl> /><tpl> $langPassportAsClient </tpl></label>
 <label for="passport_type_2"><input name="passport_type" type="radio" id="passport_type_2" value="2" onclick="javascript:$('#div_passport_server').hide();$('#div_passport_client').hide();$('#div_passport_uc').show();$('#div_server_detail').hide();$('#div_client_detail').hide();$('#div_uc_detail').show();"<tpl>if $config_array.passport_type eq '2' </tpl> checked<tpl> /if </tpl> /><tpl> $langPassportAsUC </tpl></label>
<br />
<div style="margin-top:10px;<tpl>if $config_array.passport_type neq '0' </tpl>display:none;<tpl> /if </tpl>" id="div_passport_server">
<span style="width:100px"><tpl> $langInteSystem </tpl> :</span>
	<select name="intergration" onchange="change_sys(this.value);">
		<option value=""><tpl> $langNoInteSystem </tpl></option>
		<option value="phpwind" <tpl> if $config_array.open_phpwind eq '1' </tpl>selected="selected"<tpl> /if </tpl>>PHPwind6</option>
		<option value="discuz" <tpl> if $config_array.open_discuz eq '1' </tpl>selected="selected"<tpl> /if </tpl>>Discuz!6.0</option>
		<option value="dedecms" <tpl> if $config_array.open_dedecms eq '1' </tpl>selected="selected"<tpl> /if </tpl>>DEDECMS</option>
		<option value="phpcms" <tpl> if $config_array.open_phpcms eq '1' </tpl>selected="selected"<tpl> /if </tpl>>PHPCMS</option>
	<!-- option value="cmsware" <tpl> if $config_array.open_cmsware eq '1' </tpl>selected="selected"<tpl> /if </tpl>>CMSWARE</option -->
		<option value="ecms" <tpl> if $config_array.open_ecms eq '1' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langInteEmpireSystem </tpl></option>
	</select>
    <tpl> $langInteCharset </tpl>：<select name="charset">
		<option value="gbk" <tpl> if $config_array.api_charset eq 'gbk' </tpl>selected="selected"<tpl> /if </tpl>>gbk</option>
		<option value="utf-8" <tpl> if $config_array.api_charset eq 'utf-8' </tpl>selected="selected"<tpl> /if </tpl>>utf-8</option>
		</select>


	<div style="margin-top:10px">
		<div id="phpwind_sign" <tpl> if $config_array.open_phpwind eq '0' </tpl>style="display:none;line-height:25px"<tpl> /if </tpl>  >
			<tpl> $langIntePHPwindBBSDir </tpl>:<input name="phpwind_url" style="border:1px solid #ccc"  type="text" id="phpwind_url" size="40" value="<tpl> $config_array.phpwind_path </tpl>"/>
	  </div>
  
		<div id="discuz_sign" <tpl> if $config_array.open_discuz eq '0' </tpl>style="display:none;line-height:25px"<tpl> /if </tpl>  >
			<tpl> $langInteDiscuzBBSDir </tpl>:<input name="discuz_url" style="border:1px solid #ccc"  type="text" id="discuz_url" size="40" value="<tpl> $config_array.discuz_url </tpl>"/>
			<br/>
			<tpl> $langInteXspaceBlogDir </tpl>:<input name="xspace_url" style="border:1px solid #ccc"  type="text" id="xspace_url" size="40" value="<tpl> $config_array.xspace_url </tpl>"/>
	</div>

		<div id="ecms_sign" <tpl> if $config_array.open_ecms eq '0' </tpl>style="display:none;line-height:25px"<tpl> /if </tpl>  >
			<tpl> $langInteEmpireCMSDir </tpl>: <input name="ecms_url" style="border:1px solid #ccc"  type="text" id="ecms_url" size="40" value="<tpl> $config_array.ecms_path </tpl>"/><br />
			<tpl> $langInteEmpireCMSSetupDir </tpl>: <input name="ecms_path_absolut" style="border:1px solid #ccc"  type="text" id="ecms_path_absolut" size="40" value="<tpl> $config_array.ecms_path_absolut </tpl>"/>  <tpl> $langInteExample </tpl>
		
	  </div>

		<div id="dedecms_sign" <tpl> if $config_array.open_dedecms eq '0' </tpl>style="display:none;line-height:20px"<tpl> /if </tpl> >
			<tpl> $langInteDEDECMSDir </tpl>:<input name="dedecms_url" type="text" style="border:1px solid #ccc"  id="dedecms_url" size="40" value="<tpl> $config_array.dedecms_path </tpl>"/><br />
			<!-- 
			数据库名称:&nbsp;<input type="text" name="inte_db_name" id="inte_db_name" style="border:1px solid #ccc" size="40" value=""/>
	  		<tpl> if $config_array.open_dedecms eq '1' </tpl>	<br />
	  		表前缀：&nbsp;&nbsp;&nbsp;&nbsp;<input name="inte_prefix" type="text" id="inte_prefix"><input type="button" name="Submit" value="会员整合" onclick="ShowResult('integration')" />
	  		<tpl> /if </tpl> -->
	 	</div>

		<div id="cmsware_sign" <tpl> if $config_array.open_cmsware eq '0' </tpl>style="display:none;line-height:25px"<tpl> /if </tpl>  >
			<tpl> $langInteCMSWAREDir </tpl>:<input name="cmsware_url" style="border:1px solid #ccc"  type="text" id="cmsware_url" size="40" value="<tpl> $config_array.cmsware_path </tpl>"/><br />
			<tpl> $langInteCMSWARESetupDir </tpl>: <input name="cmsware_path_absolut" style="border:1px solid #ccc"  type="text" id="cmsware_path_absolut" size="40" value="<tpl> $config_array.cmsware_path_absolut </tpl>"/> <tpl> $langInteExampleCMSWARE </tpl><br />
			<tpl> $langInteCWPSAccessPassword </tpl>:<input name="cmsware_TransactionAccessKey" style="border:1px solid #ccc"  type="text" id="cmsware_TransactionAccessKey" size="40" value="<tpl> $config_array.cmsware_TransactionAccessKey </tpl>"/>
		
  		</div>

		<div id="phpcms_sign" <tpl> if $config_array.open_phpcms eq '0' </tpl>style="display:none;line-height:20px"<tpl> /if </tpl> >
			<tpl> $langIntePHPCMSBBSDir </tpl>:<input name="phpcms_url" type="text" style="border:1px solid #ccc"  id="phpcms_url" size="40" value="<tpl> $config_array.phpcms_path </tpl>"/>
  		</div>
	</div>
</div>

<div style="margin-top:10px;<tpl>if $config_array.passport_type neq '1' </tpl>display:none;<tpl> /if </tpl>" id="div_passport_client">
	<tpl> $langPassportServerUrl </tpl>:<input name="passport_url" style="border:1px solid #ccc"  type="text" id="passport_url" size="50" value="<tpl> $config_array.passport_url </tpl>"/><br />
	<tpl> $langPassportLoginUrl </tpl>:<input name="passport_login" style="border:1px solid #ccc"  type="text" id="passport_login" size="40" value="<tpl> $config_array.passport_login </tpl>"/><br />
	<tpl> $langPassportLogoutUrl </tpl>:<input name="passport_logout" style="border:1px solid #ccc"  type="text" id="passport_logout" size="40" value="<tpl> $config_array.passport_logout </tpl>"/><br />
	<tpl> $langPassportRegUrl </tpl>:<input name="passport_register" style="border:1px solid #ccc"  type="text" id="passport_register" size="40" value="<tpl> $config_array.passport_register </tpl>"/>
</div>
<div style="margin-top:10px;<tpl>if $config_array.passport_type neq '2' </tpl>display:none;<tpl> /if </tpl>" id="div_passport_uc">
	<tpl> $langPassportUCDBhost </tpl>:	<input name="uc_dbhost" style="border:1px solid #ccc"  type="text" id="uc_dbhost" size="40" value="<tpl> $config_uc_array.uc_dbhost </tpl>"/><br />
	<tpl> $langPassportUCDBname </tpl>:	<input name="uc_dbname" style="border:1px solid #ccc"  type="text" id="uc_dbname" size="40" value="<tpl> $config_uc_array.uc_dbname </tpl>"/><br />
	<tpl> $langPassportUCDBuser </tpl>:	<input name="uc_dbuser" style="border:1px solid #ccc"  type="text" id="uc_dbuser" size="40" value="<tpl> $config_uc_array.uc_dbuser </tpl>"/><br />
	<tpl> $langPassportUCDBpw </tpl>:	<input name="uc_dbpw" style="border:1px solid #ccc"  type="text" id="uc_dbpw" size="40" value="<tpl> $config_uc_array.uc_dbpw </tpl>"/><br />
	<tpl> $langPassportUCDBtablepre </tpl>:	<input name="uc_dbtablepre" style="border:1px solid #ccc"  type="text" id="uc_dbtablepre" size="40" value="<tpl> $config_uc_array.uc_dbtablepre </tpl>"/><br />
	<tpl> $langPassportUCDBcharset </tpl>:	<select name="uc_databasechar">
				<option value="utf8" <tpl> if $config_uc_array.uc_dbcharset eq 'utf8' </tpl>selected="selected"<tpl> /if </tpl>>utf8</option>
				<option value="gbk" <tpl> if $config_uc_array.uc_dbcharset eq 'gbk' </tpl>selected="selected"<tpl> /if </tpl>>gbk</option>
				</select><br /><br />
	<tpl> $langPassportUCapi </tpl>:	<input name="uc_api" style="border:1px solid #ccc"  type="text" id="uc_api" size="40" value="<tpl> $config_uc_array.uc_api </tpl>"/><br />
	<tpl> $langPassportUCcharset </tpl>:	<select name="uc_charset">
					<option value="utf-8" <tpl> if $config_uc_array.uc_charset eq 'utf8' </tpl>selected="selected"<tpl> /if </tpl>>utf-8</option>
					<option value="gbk" <tpl> if $config_uc_array.uc_charset eq 'gbk' </tpl>selected="selected"<tpl> /if </tpl>>gbk</option>
				</select><br />
	UCenter IP:	<input name="uc_ip" style="border:1px solid #ccc"  type="text" id="uc_ip" size="40" value="<tpl> $config_uc_array.uc_ip </tpl>"/><br />
	<tpl> $langPassportUCappid </tpl>:	<input name="uc_appid" style="border:1px solid #ccc"  type="text" id="uc_appid" size="40" value="<tpl> $config_uc_array.uc_appid </tpl>"/><br /><br />
</div>

</div>
<span class="btn_left"><input type="submit" class="btn_submit" name="Submit" value="<tpl> $langInteSave </tpl>" /></span>
</form>
<!-- 
<div id="showprogress" style="display:none;line-height:20px;border:1px solid #ccc;text-align:center;">
<h3>shop表内还有数据,是否清除后执行会员整合?</h3>
<input type="button" value="开始执行" onclick="ShowResult('cleartables')" />&nbsp;&nbsp;<input type="button" value="返回" onclick="goBack()"/>
</div>
 -->
<div id="showprogressing" style="display:none;line-height:20px;border:1px solid #ccc;text-align:center;">
<h3 id="show_progress_message_of_tableinfo"></h3>
<h3 id="show_progress_message_of_data"></h3>
<h3 id="show_progress_message_of_result"></h3>
</div>

<br/>
<div style="padding:20px">
<tpl> $langInteSystemConformityExplain </tpl><br />
<span style="line-height:25px; margin-top:10px; display:block">
<tpl> $langInteFunctionAndUse </tpl> 
<tpl> $langInteShopAndBBSLaissezPasserUse </tpl>：<br /> </span>
<div id="div_server_detail" style="<tpl>if $config_array.passport_type neq '0' </tpl>display:none;<tpl> /if </tpl>">
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	<tpl> $langInteSystemConformitySet </tpl>
	<tpl> $langPassportIfOpen </tpl>　　　　　<tpl> $langPassportIfOpenYes </tpl>
	<tpl> $langInteKeySetSameness </tpl>
	<tpl> $langPassportAs </tpl>　<tpl> $langPassportAsServer </tpl>
	<tpl> $langInteSelectCmsSystem </tpl> 
	<tpl> $langInteFillInSystemAccessDir </tpl></pre></span>
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	<tpl> $langInteSystemLaissezPasserSet </tpl>
	<tpl> $langInteLaissezPasserOpen </tpl>
	<tpl> $langInteLaissezPasserFillInThis </tpl>
	<tpl> $langInteThisWebLaissezPasser </tpl>
	<tpl> $langInteLaissezPasserServerAddress </tpl>
	<tpl> $langInteLaissezPasserLoginAddress </tpl>　　　　home/member.php?action=login
	<tpl> $langInteLaissezPasserQuitAddress </tpl>　　　　home/member.php?action=logout
	<tpl> $langInteLaissezPasserRegAddress </tpl>　　　　home/member.php?action=regist
	</pre></span>
</div>
<div id="div_client_detail" style="<tpl>if $config_array.passport_type neq '1' </tpl>display:none;<tpl> /if </tpl>">
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	<tpl> $langInteSystemConformitySet </tpl>
	<tpl> $langPassportIfOpen </tpl>	<tpl> $langPassportIfOpenYes </tpl>
	<tpl> $langInteKeySetSameness </tpl>
	<tpl> $langPassportAs </tpl>	<tpl> $langPassportAsClient </tpl><br />
	<tpl> $langPassportServerUrl </tpl>:	<tpl> $langPassportServerUrlNote </tpl>
	<tpl> $langPassportLoginUrl </tpl>:	<tpl> $langPassportLoginUrlNote </tpl>
	<tpl> $langPassportLogoutUrl </tpl>:	<tpl> $langPassportLogoutUrlNote </tpl>
	<tpl> $langPassportRegUrl </tpl>:	<tpl> $langPassportRegUrlNote </tpl>
	</pre></span>
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	2. <tpl> $langForumPassportAsServerSetGuide </tpl>
	<tpl> $langForumPassportIfOpen </tpl>　　　　<tpl> $langForumPassportIfOpenYes </tpl>
	<tpl> $langForumPassportKey </tpl>　　　　<tpl> $langForumPassportKeyNote </tpl>
	<tpl> $langForumPassportAs </tpl>　<tpl> $langForumPassportAsServer </tpl>
	<tpl> $langForumPassportClientUrl </tpl>	<tpl> $langForumPassportClientUrlNote </tpl><br />
	<tpl> $langForumPassportPWMode </tpl>  
	</pre></span>
</div>
<div id="div_uc_detail" style="<tpl>if $config_array.passport_type neq '2' </tpl>display:none;<tpl> /if </tpl>">
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	1.<tpl> $langPUCDetailUCset </tpl>:
	1)<tpl> $langPUCDetailUCappadd </tpl>
	2)<tpl> $langPUCDetailUCappaddsel </tpl>:	<tpl> $langPUCDetailUCappaddmanul </tpl>
	  <tpl> $langPUCDetailUCappName </tpl>:	ShopNC
	  <tpl> $langPUCDetailUCappUrl </tpl>:	<tpl> $langPUCDetailUCappUrlNote </tpl>
	  <tpl> $langPUCDetailUCappIP </tpl>:	<tpl> $langPUCDetailUCappIPNote </tpl>
	  <tpl> $langPUCDetailUCkey </tpl>:	<tpl> $langPUCDetailUCkeyNote </tpl>
	  <tpl> $langPUCDetailUCappLogin </tpl>:	<tpl> $langPUCDetailUCappLoginYes </tpl>
	  <tpl> $langPUCDetailUCappLabelSingle </tpl>:	<tpl> $langPUCDetailUCappLabelSingleNote </tpl>
	  <tpl> $langPUCDetailUCappLabelSign </tpl>:	<tpl> $langPUCDetailUCappLabelSignNote </tpl>
	  <tpl> $langPUCDetailUCappType </tpl>:	<tpl> $langPUCDetailUCappTypeNote </tpl>
	  <tpl> $langPUCDetailUCappTell </tpl>:	<tpl> $langPUCDetailUCappTellNote </tpl>
	</pre></span>
	<span style="line-height:25px; margin-top:10px; display:block"><pre>
	2. <tpl> $langPUCDetailShopNCset </tpl>:
	<tpl> $langForumPassportIfOpen </tpl>　　　　<tpl> $langForumPassportIfOpenYes </tpl>
	<tpl> $langForumPassportKey </tpl>　　　　<tpl> $langForumPassportKeyUCNote </tpl>
	<tpl> $langForumPassportAs </tpl>　<tpl> $langForumPassportAsUCClient </tpl>
	<tpl> $langPUCDetailNCUCdbhost </tpl>:	<tpl> $langPUCDetailNCUCdbhostNote </tpl>
	<tpl> $langPUCDetailNCUCdbname </tpl>:	<tpl> $langPUCDetailNCUCdbnameNote </tpl>
	<tpl> $langPUCDetailNCUCdbuser </tpl>:		<tpl> $langPUCDetailNCUCdbuserNote </tpl>
	<tpl> $langPUCDetailNCUCdbpw </tpl>:	<tpl> $langPUCDetailNCUCdbpwNote </tpl>
	<tpl> $langPUCDetailNCUCdbtbpre </tpl>:	<tpl> $langPUCDetailNCUCdbtbpreNote </tpl>
	<tpl> $langPUCDetailNCUCdbcharset </tpl>:	<tpl> $langPUCDetailNCUCdbcharsetNote </tpl>
	
	<tpl> $langPUCDetailNCUCapi </tpl>:	<tpl> $langPUCDetailNCUCapiNote </tpl>
	<tpl> $langPUCDetailNCUCcharset </tpl>:	<tpl> $langPUCDetailNCUCcharsetNote </tpl>
	UCenter IP:	<tpl> $langPUCDetailNCUCipNote </tpl>
	<tpl> $langPUCDetailNCUCappid </tpl>:	<tpl> $langPUCDetailNCUCappidNote </tpl>
	</pre></span>
</div>
</div>
</div>
</div>
<!-- 帮助菜单 -->
<tpl> include file='sys_right_help.html' </tpl>
<!-- 帮助菜单END -->
</body>
</html>
<script>
$(document).ready(function() {
	hideLoading();
	
	var options = {
		beforeSubmit:  function(){showLoading(showSaveText);},
		success:       function(msg){
			hideLoading();
			showMessage(msg.message,msg.type);
		},
		type:      'post',
		dataType:  'json'

	};
	//表单验证
	$("#form1").validate({
		errorClass: "wrong",
		rules: {
			passport_key: {required:true}
		},
		messages: {
			passport_key: {required: "<tpl> $langInteFillInLaissezPasserKEY </tpl>"}
		},
		submitHandler: function() {
			$('#form1').ajaxSubmit(options);
		}
	});
	
});

function change_sys(str){
	$('#phpwind_sign').slideUp("slow");
	$('#discuz_sign').slideUp("slow");
	$('#dedecms_sign').slideUp("slow");
	$('#phpcms_sign').slideUp("slow");
	$('#ecms_sign').slideUp("slow");
	$('#cmsware_sign').slideUp("slow");
	$('#'+str+'_sign').slideDown("fast");
	$('#showprogress').css("display",'none');
}



function goBack(){
//	$('#showcontent').css('display','');
	$('#showprogress').css("display",'none');
	$('#showprogressing').css("display",'none');
}

</script>
